package _spring_test._autowired;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @Author: huangya
 * @Date: 2020/6/6
 * @Description:
 */
public class AutowiredTest {

    public static void main(String[] args) {
        ApplicationContext ac = new ClassPathXmlApplicationContext("autowired/application-autowired.xml");
        Order order = (Order) ac.getBean("order");
        System.out.println(order.getOrderDetail().getId());
    }
}
